﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YasharEl.Infrastructure.Caching.Orm
{
    public interface IOrmCacheManager : ICacheManager
    {
        /// <summary>
        /// If this is a clustered cache, lock the item
        /// </summary>
        /// <param name="key"></param>
        void Lock(string key);

        /// <summary>
        /// If this is a clustered cache, unlock the item
        /// </summary>
        /// <param name="key"></param>
        void Unlock(string key);

        /// <summary>
        /// Clean up cache.
        /// </summary>
        void Destroy();

        int LockTimeout { get; }
    }
}
